package com.guigu.www.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("s_gather_details")
public class GatherDetails {
    @TableId(value ="id",type= IdType.AUTO)
    private Integer id;

    @TableField("parent_id")
    private Integer  parentId;

    @TableField("product_id")
    private String  productId;      //产品编号

    @TableField("product_name")
    private String  productName;        //产品名称

    @TableField("product_describe")
    private String  productDescribe;    //描述

    private String  amount;         //数量

    @TableField("amount_unit")
    private String  amountUnit;         //单位

    @TableField("cost_price")
    private String  costPrice;          //单价

    private String  subtotal;       //小计

    @TableField("gathered_amount")
    private String gatheredAmount;      //确认入库件数

    @TableField("gather_tag")
    private String  gatherTag;      //入库标志  K002-1: 已登记  K002-2: 已调度
    //查询当前的安全库存
    @TableField(exist = false)
    private Cell cell;
    //查询入库表
    @TableField(exist = false)
    private Gather gather;
    //已经入库数量
    private Integer warehousing;
    //注：
    //1、PARENT_ID与S_GATHER的ID相对应，为外键
}
